package com.platform.car.service.impl;

import com.platform.common.base.impl.BaseServiceImpl;
import com.platform.car.dao.CityDao;
import com.platform.car.model.City;
import com.platform.car.service.CityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class CityServiceImpl extends BaseServiceImpl<City> implements CityService {
    @Autowired
    private CityDao cityDao;

    @Override
    public List<City> chooseNext(long parentId) {
        return cityDao.chooseNext(parentId);
    }

    @Override
    public City selectByName(String name) {
        return cityDao.selectByName(name);
    }
}
